package com.sky.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜品口味
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DishFlavor implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    //菜品id
    private Long dishId;

    //口味名称
    private String name;

    //口味数据list
    private String value;

    //是否删除
    private Integer isDeleted;

    //创建时间
    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @TableField(fill= FieldFill.INSERT)
    private Long createUser;

    //更新人
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Long updateUser;

}
